package edu.mobbuzz.web.state;

import java.io.Serializable;

import edu.mobbuzz.daf.bean.Administrator;
import edu.mobbuzz.daf.bean.User;



public class Visit implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	// The logged in user
	private boolean loggedIn = false;
	private String username = null;
	private String password = null;
	
	public void noteLogIn(Administrator _administrator) {
		loggedIn = true;
		username = _administrator.getUsername();
		password = _administrator.getPassword();
	}

	public void noteLogOut() {
		loggedIn = false;
		username = null;
		password = null;
	}

	public boolean isLoggedIn() {
		return loggedIn;
	}

	public String getUsername() {
		return username;
	}

	public String getPassword() {
		return password;
	}
}